home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / util / libs / newfmt.readme < prev    next >
Encoding:
Text File  |  1998-01-06  |  2.5 KB  |  60 lines

  1. Short:    New way to format strings (DOpus-like)
  2. Author:   Wojciech Kocjan <kocjan@ka.onet.pl>
  3. Uploader: Wojciech Kocjan <kocjan@ka.onet.pl>
  4. Type:     util/libs
  5.  
  6. This  library  is  intended  to  replace  (not  patch!)  the exec/RawDoFmt()
  7. function  by  easier  (for the user and developer).  Instead of parsing only
  8. the  type  of  field,  you enter the string name (tag) and format optionally
  9. (defaults  to  %s).  It uses RawDoFmt() for printf-like formatting of single
  10. string  (tag).   The format string can be anything and the application using
  11. newfmt.library  will  be  able  to  select  the  characters  responsible for
  12. beginning, slashing and ending of the tag.  By default they are "{", "/" and
  13. "}".  The tag consists of the following:
  14.  
  15. {tag/format}    ie. {f/s}    {size/ld}
  16. | | |   |  |
  17. | | |   |  +--ending character
  18. | | |   +-----formatting string (for RawDoFmt())
  19. | | +---------shash character
  20. | +-----------tag name (up to 4 characters)
  21. +-------------beginning character
  22.  
  23.                          or
  24.  
  25. {tag}
  26. | | |
  27. | | +--ending character
  28. | +----tag name (up to 4 characters)
  29. +------beginning character
  30.  
  31. beginning character - usually "{", set by application
  32. tag name - is the "tag" for searching for the value
  33. slash character - used when you want to enter the format
  34. format - RawDoFmt() format, for more info see autodocs
  35. ending character - usually "}", set by application.
  36.  
  37.  
  38. ============================= Archive contents =============================
  39.  
  40. Original  Packed Ratio    Date     Time    Name
  41. -------- ------- ----- --------- --------  -------------
  42.      637     280 56.0% 13-Dec-97 16:56:00  newfmt.info
  43.     2349    1254 46.6% 10-Dec-97 05:15:26 +autodoc.info
  44.     3456    1220 64.6% 13-Dec-97 22:52:32 +newfmt.doc
  45.     2349    1249 46.8% 10-Dec-97 05:13:18 +fd.info
  46.      253     132 47.8% 13-Dec-97 22:49:22 +newfmt.fd
  47.     2349    1256 46.5% 10-Dec-97 05:15:22 +include.info
  48.     1054     330 68.6% 13-Dec-97 22:48:18 +newfmt_protos.h
  49.      519     213 58.9% 22-Nov-97 00:02:02 +newfmt.h
  50.      226     156 30.9% 10-Dec-97 05:30:12 +newfmt.i
  51.      539     261 51.5% 13-Dec-97 22:56:28 +newfmt_lib.i
  52.      368     117 68.2% 13-Dec-97 22:48:42 +newfmt_pragmas.h
  53.      180     127 29.4% 22-Nov-97 19:33:56 +newfmt.h
  54.      500     320 36.0% 13-Dec-97 22:54:10 +newfmt.lib
  55.     2428    1485 38.8% 13-Dec-97 22:46:06 +newfmt.library
  56.     1375     634 53.8% 13-Dec-97 16:44:24 +newfmt.readme
  57.      493     249 49.4% 13-Dec-97 16:46:06 +newfmt.readme.info
  58. -------- ------- ----- --------- --------
  59.    19075    9283 51.3% 29-Dec-97 23:19:44   16 files
  60.